import boto3
from botocore.client import Config

s3 = boto3.client(
 's3',
 endpoint_url='http://10.144.0.2:9000',
 aws_access_key_id='wardyan',
 aws_secret_access_key='wardyan020598',
 config=Config(signature_version='s3v4'),
 region_name='us-east-1'
)


s3.download_file("123", 'origin_202206271928004549.jpg', 'origin_202206271928004549.jpg')
print('File downloaded.')